package assist.domain.model;

import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.NotPersistent;

/**
 * 
 * Abstract because all ShotsAtGoal are either missed shots, or shots on goal.
 *
 */
@PersistenceCapable(detachable = "true")
//@Inheritance(customStrategy = "complete-table")
public abstract class ShotAtGoal extends Shot
{    
    @NotPersistent
    private static final long serialVersionUID = 1L;    
    @NotPersistent
    private Integer distance;
    /**
     * @param distance the distance to set
     */
    public void setDistance(final Integer distance)
    {
        this.distance = distance;
    }
    /**
     * @return the distance
     */
    public Integer getDistance()
    {
        return this.distance;
    }   
}
